package com.example.hms.service;

import com.example.hms.dao.UserDao;
import com.example.hms.entity.User;
import com.example.hms.util.Result;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    Result login(String userId, String userPassword, HttpServletRequest request);

    //info  获取当前用户的信息
    //HttpServletRequest request 用于获取当前请求中的上下文信息，例如从 session 或 token 中提取当前登录用户的信息。
    Result info(HttpServletRequest request);

    Result selectAllUser(String userId, String userName, String roleName);
    Result insert(User user, HttpServletRequest request);
    Result update(User user, HttpServletRequest request);
    Result delete(String userId, HttpServletRequest request);
}
